
class_name = "CUnmannedPlane"
object_name = "V-1"
detail_type = "DET_PLANE" //list of types is in \inc\SimulationSystem\DetailTypes.inc

[COCKPIT_LIMITS]
x= -0.05, 0.05
y= -0.05, 0.05
z= -0.05, 0.05
[END]

[OPEN_COCKPIT_LIMITS]
x= -0.05, 0.05
y= -0.05, 0.05
z= -0.05, 0.05
[END]

//////	PhysicsBody properties
//VisualImage = <int TYPE>,<string File_PathName>,<bool cast_shadows>

VisualImage=0,"graphics/planes/V1/V1.mgm",true,true
//VisualImage=1,"graphics/planes/V1/V1-C.mgm",false
DistantLOD="LuaScripts/WorldObjects/Planes/DistantLODs/V1_Distant.txt"
DLODArgs=50380,57200
Fragment="LuaScripts/WorldObjects/Planes/Fragments/V1_Fragment.txt"

//VisualImage=ID,model_or_effect,cast_shadows[,debris_effects]
//ID:					INT:	0 - visible everywhere, 1 - visible inside, 2 - visible outside
//model_or_effect:		STRING:	path to model file (mgm) of effect file (epl)
//cast_shadows: 		BOOL:	cast shadows from object or not
//[,debris_effects]:	BOOL:	optional parameter, show effects on object debris or not

ImageAttr=473 //"IA_NOCLIP","IA_CLOSEVIEWARG","IA_NOMINPIXELS","IA_NOMINZ","IA_SCALEARG"
EnabledDecals=true	//      ,    

CollisionBody="graphics/planes/V1/V1_Phys.col"
HitBody="graphics/planes/V1/V1.col"
ExtrudeCollisions=true	//Protection against fast objects collision skip

SoundScript="LuaScripts/Sound/Planes/V1.cfg"
HidePeriodAfterExplosion = 3.0

DropsArg=100
HumidityArg=101

SetCockpitArgs=false	// true -             , false -              

Script="LuaScripts\ObjectScripts\Planes\_V1.sc"

[attach=0]
	position= -2.85, 0.0, 0.0
	object = "LuaScripts/WorldObjects/Bots/BotPilot_V1_GER44.txt"
[end]

[attach=1]
	position= 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/Spotter.txt"
[end]

[attacher]
	LauncherRampSearchRadius = 20
	StartHookPos = -1.6,-0.47,0
	StartHookRot = 0,0,0
[end]

//LaunchHook=0.465,-0.427,0.000	//TODO (!!!!!!!!!!!!!!!!!!!) -      

AttachedCameras = "LuaScripts\WorldObjects\fixcameras\Planes\V1.txt"

BannerAttachID=-1

//CockpitSafetyRate = 0.35 //impact accelerations affect on bot treshold multiplifier (default is =1.0)

SeatBackAngle = 0.0

SendRate=5,50	//normal, attached state

CommandMonitor="LuaScripts/WorldObjects/FokkerMonitor.txt"


//////	Controled body specific
CockpitFocus=0.6,-1.0,0,65,0.7

RSE_Data_File="LuaScripts/RSE/RSE_FokkerDr7.txt"
Plane_Class="CAeroplane_V_1"

InitialSpeedInAir = 570.0   //,      , 200...700 /

Gun_Coord0= 0.0, 0.0, 0.0
Deviation0= 3, 2, 0.9, 0.02, 0.1
ParallaxDistance = 600.0

MinCartridgeCaseTime = 0.05 //       

FTCoord=0.0, 0.0, 0.0

FlarePos= 0.0, 0.0, 0.0
FlareDir= 0.0, -1.0, 0.0

FlarePath="LuaScripts/WorldObjects/Ballistics/Flare.txt"
FlareDisabled=true	//        

//GunsightPosition = 0.0, 0.0, 0.0

//   

[WeaponMode=0]
	WMname="default"
	WMgroup="default"
	PlaneModArg=-1
	TurretID=-1
	TurretDefault=""
	TurretMod=""

 	[AdditionalElement]	//   -1
		AttachToPart = "^_Fuse_Ctl_8"
		Position = -0.869, 0.0, -0.123
		Mass = 15.49
		CxaS = 0.0
	[end]

	[AdditionalElement]	//   -2
		AttachToPart = "^_Fuse_Ctl_8"
		Position = -1.320, 0.0, 0.102
		Mass = 15.49
		CxaS = 0.0
	[end]
[end]

//   

AmmunitionArg=12900

[Ammunition=0]
	WeaponModes=0
	AnimationVal=0.0
	name="Empty"
	GunAmmunition0=-1
	PrimaryAimingGun=0
[end]

DefaultAmmunition=0

//     

[attach=10]
	position= 0.187, -0.638, 0.0 //   
	convex = "^_Fuse_Ctl_0"
	rotation= 0.0, 0.0, 0.0
[end]

[attach=11]
	position= -1.70, -0.439, 0.0 //   
	convex = "^_Fuse_Ctl_8"
	rotation= 0.0, 0.0, 0.0
[end]

TrashWood="LuaScripts/WorldObjects/Trash/Trash.txt"
TrashArmor="LuaScripts/WorldObjects/Trash/Trash.txt"
logtreshold=0.0001

FuelTankExplosionFastAndHigh="LuaScripts/WorldObjects/explosions/Detonation/FuelTank.txt"
FuelTankExplosionSlowOrLow="LuaScripts/WorldObjects/explosions/Detonation/FuelTankGnd.txt"

//   

rec_cockpit_arg=1

SmoothControlFactor=0

//,    ,       ,   
ObjectRadius=5.6

[Entrance]
	EntrancePos= 0.0, 0.0, 0.0
	EntranceRot= 0,0,0
	JumpDir= 0,-6,1
[end]

//    // TODO
//SectorLimits  =   -6.0,   +6.0,  -6.0, +90.0
//SectorLimits  =   +6.0,  +25.0, -20.0, +90.0


//AIRPLANE DAMAGE

[CONTROL_SYSTEM_DM]
	[RUDDER=0]
		Link = 0, 0, "^_Fuse_Ctl_8", 20.0, 2.0, 0.2 // RUDDER_DM_SETTINGS
		Link = 0, 0, "^_Fin_Ctl_0",  20.0, 2.0, 0.2 // RUDDER_DM_SETTINGS
		Link = 0, 0, "^_Fin_Ctl_1",  20.0, 2.0, 0.2 // RUDDER_DM_SETTINGS
	[END]

	[ELEVATOR=1]
		Link = 0, 0, "^_Fuse_Ctl_8", 20.0, 2.0, 0.2 // ELEVATOR_DM_SETTINGS
		Link = 0, 0, "^_Stab_L_0",   20.0, 2.0, 0.2 // ELEVATOR_DM_SETTINGS
		Link = 0, 0, "^_Stab_L_1",   20.0, 2.0, 0.2 // ELEVATOR_DM_SETTINGS
	[END]

	[ELEVATOR=2]
		Link = 0, 0, "^_Fuse_Ctl_8", 20.0, 2.0, 0.2 // ELEVATOR_DM_SETTINGS
		Link = 0, 0, "^_Stab_R_0",   20.0, 2.0, 0.2 // ELEVATOR_DM_SETTINGS
		Link = 0, 0, "^_Stab_R_1",   20.0, 2.0, 0.2 // ELEVATOR_DM_SETTINGS
	[END]
[END] // CONTROL_SYSTEM_DM


[PlanePartProtection]
	PartName = "~eng01"
	DirectHitArmor = 1.0
	SphereHitProtection = 1.0
[end]

SphereHitProtection=1	//  /     

energyloss="",true,0.23,1000 //     , true -       -,       ,        

//Engine Group

energyloss="~eng01",true,5.0,20000  //  
energyloss="~ftank01",true,0.7,10000 //  

//Armament Group

energyloss="~ammo",true,0.7,20000 // 



[trashspawner]
	[spawn=0]
		solidtrash="LuaScripts\WorldObjects\Trash\PlaneTrash\V1_piston.txt"
		Position=0.1867, -0.6377, 0.0
		SpawnDir=0,-2,0
	[end]
	[spawn=1]
		solidtrash="LuaScripts\WorldObjects\Trash\PlaneTrash\V1_carriage.txt"
		Position=-1.6958, -0.4388, 0.0
		SpawnDir=0,-1,0
	[end]
[end]

SeekMaintenance = true
ReFuelFlow = 6 // liters per second
BombHolderReArmTime = 5 // seconds,  30,  5      -2  2 
RepairTime = 1500 // seconds,        -2      2 

